|
|
|
|
|
|
|
|
If you do not want the user to have the option of specifying a destination folder, add the line ForceUseDefDir=1 to the [Setup] section of SETUP.LST. To specify a different default directory, change the DefaultDir line.  |
|
|
|
|
|
|
|
|
|
|
3. If the user chooses to continue, the program creates the application directory and begins copying files. The files to be copied are listed in the [Setup1 Files] section of SETUP.LST. You may notice that for each file in the [Setup1 Files] section there is a long list of parameters. These parameters give the setup routine information about each individual file, such as the destination directory and version number. |
|
|
|
|
CAUTION
|
|
|
|
|
The version number of your program is very important. If you do not increment the version number in the Project Properties dialog box, Setup assumes the user already has the correct version, so it does not need to copy over it. If you are having problems, view the installation log file to see which files were actually copied. |
|
|
|
|
|
|
|
|
|
|
4. When SETUP1.EXE finishes copying files, it attempts to register some of them. Whether a file needs to be registered is determined by one of the SETUP.LST parameters, typically (DLLSelfRegister) or $(EXESelfRegister). |
|
|
|
|
|
|
|
|
|
If you need to register a file manually, use the REGSVR32 utility included with Visual Basic. You can register ActiveX EXEs with Windows by running them with the command-line parameter /REGSERVER.  |
|
|
|
|
|
|
|
|
|
|
5. SETUP1.EXE creates the shortcut icons for your program. The program group names are listed in the [IconGroups] section. |
|
|
|
|
|
|
|
|
6. The major actions taken by the setup program (copying, registering, and so on) are saved in a log file in the application directory. This log file is used by the uninstall program but can also be a useful troubleshooting tool. |
|
|
|
|
|
|
|
|
As you may have noticed, all your installation files are compressed into one or more CAB files. If you make even a minor change to your program, you need to recompile the project and place the new executable in the CAB file. For this reason, the Package and Deployment Wizard places a second, decompressed, copy of the installation files in the Support directory. It also creates a batch file named after your project, such as PROJECT1.BAT. If you want to update your installation package without going through the wizard again, you can use this batch file. |
|
|
|
|
|
|
|
|
To rebuild your CAB file, place the new EXE in the Support directory. Then double-click the batch file. A new CAB file is built in the Support directory and must be copied over the existing CAB file in the Package directory. |
|
|
|
|
|
|
|
|
Even though you can customize SETUP.LST to a great extent, a standard Setup Wizard installation still might not be suitable for your needs. For example, you may want to create your own "wrapper" program around SETUP.EXE to perform other functions. You could temporarily map a network drive to the installation server, run SETUP.EXE, and then |
|
|
|
|
|